/**
 * @Author: hhy
 * @Date: 2019-01-28 16:04:30
 * @Last Modified by: chenjie
 * @Last Modified time: 2020-01-09 15:06:17
 * @文件说明: 全局跨平台样式表
 */

$theme-color: #409eff;
$common-theme-color: #409eff;
//  易佳v2主题色 旧 #0043ff || 新 #0076FF
$lpoll-theme-color: #0076ff;
// 顶赞主题色
$dingzan-theme-color: #33c392;
// 字体颜色
$c0: #000;
$c3: #333;
$c4: #444;
$c5: #555;
$c6: #666;
$c9: #999;
$c80: #808080;

@mixin c80 {
  color: $c80;
}

@mixin c0 {
  color: $c0;
}

@mixin c3 {
  color: $c3;
}

@mixin c4 {
  color: $c4;
}

@mixin c5 {
  color: $c5;
}

@mixin c6 {
  color: $c6;
}

@mixin c9 {
  color: $c9;
}

.c0 {
  color: $c0;
}

.c3 {
  color: $c3;
}

.c6 {
  color: $c6;
}

.c9 {
  color: $c9;
}

.theme-color {
  color: $theme-color;
}

// 字体大小
$f20: 20px;
$f18: 18px;
$f16: 16px;
$f17: 17px;
$f15: 15px;
$f14: 14px;
$f12: 12px;

@mixin f20 {
  font-size: $f20;
}

@mixin f18 {
  font-size: $f18;
}

@mixin f15 {
  font-size: $f15;
}

@mixin f16 {
  font-size: $f16;
}

@mixin f14 {
  font-size: $f14;
}

@mixin f12 {
  font-size: $f12;
}

@for $i from 12 through 30 {
  .f#{$i} {
    font-size: 1px * $i !important;
  }
}

// 其他颜色
$blue_a: rgba(51, 152, 255, 0.1);
$grey: #e4e7ed; //边框、背景色
$orange: #ee6869;
$oranges: #f7622e;
$orange_a: rgba(238, 104, 105, 0.1);
$green: #29cc7a;
$border: rgba(0, 0, 0, 0.04);
$purple: #9d80eb;
$white: #fff;

@mixin white {
  background-color: $white;
}

@mixin grey {
  background-color: $grey;
}

@mixin orange {
  color: $orange;
}

@mixin oranges {
  color: $oranges;
}

@mixin green {
  color: $green;
}

@mixin purple {
  color: $purple;
}

.white {
  color: $white;
}

.purple {
  color: $purple;
}

.grey {
  color: $grey;
}

.orange {
  color: $orange;
}

.oranges {
  color: $oranges;
}

.green {
  color: $green;
}

.p0 {
  padding: 0 !important;
}

.m0 {
  margin: 0 !important;
}

@for $i from 0 through 50 {
  .p#{$i} {
    padding: 1px * $i !important;
  }

  .pl#{$i} {
    padding-left: 1px * $i !important;
  }

  .pt#{$i} {
    padding-top: 1px * $i !important;
  }

  .pr#{$i} {
    padding-right: 1px * $i !important;
  }

  .pb#{$i} {
    padding-bottom: 1px * $i !important;
  }

  .m#{$i} {
    margin: 1px * $i !important;
  }

  .ml#{$i} {
    margin-left: 1px * $i !important;
  }

  .mt#{$i} {
    margin-top: 1px * $i !important;
  }

  .mr#{$i} {
    margin-right: 1px * $i !important;
  }

  .mb#{$i} {
    margin-bottom: 1px * $i !important;
  }
}

// 背景图片相关
@mixin bgi($url: '', $size: cover, $p: top, $r: no-repeat) {
  @if $url=='' {
    background-image: none;
  }

  @else {
    background-image: url($url);
  }

  // background-image: url($url);
  background-size: $size;
  background-position: $p;
  background-repeat: $r;
}

// 单行超出隐藏
@mixin ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ellipsis {
  @include ellipsis;
}

// 多行超出隐藏
@mixin ellipsis2($clamp: 2) {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box !important;
  -webkit-line-clamp: $clamp;
  /*! autoprefixer: off */
  -webkit-box-orient: vertical;
}

.ellipsis2 {
  @include ellipsis2;
}

// 文字带横线
@mixin decoration {
  text-decoration: line-through;
}

.decoration {
  text-decoration: line-through;
}

// 居中
.align {
  text-align: center;
}

//左对齐
.left {
  text-align: left;
}

//  inline-block
.inline {
  display: inline-block;
}

//  inline-block
.radius {
  border-radius: 50%;
}

//手型
.cursor {
  cursor: pointer !important;
  user-select: none;
}

.nowrap {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alignl {
  text-align: left;
}

.flex {
  flex: 1;
}

.opacity0 {
  opacity: 0;
}

// 自定义滚动条
.bjz-scrollbar {

  /*滚动条整体样式*/
  &::-webkit-scrollbar {
    width: 8px;
    height: 0px;
    cursor: pointer;

    &:hover {
      border-radius: 4px;
      background: #e9e9e9cf;
    }
  }

  /*滚动条滑块*/
  &::-webkit-scrollbar-thumb {
    border-radius: 4px;
    -webkit-box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.1);
    background: #e6e6e6;
  }

  /*滚动条轨道*/
  &::-webkit-scrollbar-track {
    // border-radius: 5px;
    // background: #e9e9e9;
  }
}

img {
  object-fit: contain;
}

.bjz-scrollbar-x {

  /*滚动条整体样式*/
  &::-webkit-scrollbar {
    height: 8px;
    cursor: pointer;

    &:hover {
      border-radius: 4px;
      background: #e9e9e9cf;
    }
  }

  /*滚动条滑块*/
  &::-webkit-scrollbar-thumb {
    border-radius: 4px;
    -webkit-box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.1);
    background: #e6e6e6;
  }

  /*滚动条轨道*/
  &::-webkit-scrollbar-track {
    // border-radius: 5px;
    // background: #e9e9e9;
  }
}

img {
  image-rendering: -moz-crisp-edges;
  /* Firefox */
  image-rendering: -o-crisp-edges;
  /* Opera */
  image-rendering: -webkit-optimize-contrast;
  /* Webkit (non-standard naming) */
  image-rendering: crisp-edges;
  -ms-interpolation-mode: nearest-neighbor;
  /* IE (non-standard property) */
}

// 响应式图片
.img-responsive {
  display: block;
  max-width: 100%;
  min-width: 100%;
  height: auto;
}

.pointer {
  cursor: pointer;
}

// 超出隐藏显示...
.bjz-beyond-hiding {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  word-break: break-all;
}

.user-select-no {
  user-select: none;
}

.el-button {
  padding: 9px 0;
  display: inline-block;
  font-size: 14px;
  min-height: 35px;
  min-width: 100px;
}

.all-from-bottom {
  margin: 30px 0 10px 0;
  text-align: center;

  .el-form-item__content {
    margin-left: 0 !important;
    text-align: center;
  }

  .date-button {
    margin-left: 50px;
    color: #fff;
  }
}

.w20 {
  width: 20%;
}

.w25 {
  width: 25%;
}

.all-table {
  &::before {
    background-color: $border;
  }

  .el-table__empty-block {
    padding: 30px 0;
    border-top: 1px solid #f5f5f5;
    font-size: 16px;
  }

  .el-table__header-wrapper tr th.el-table-fixed-column--left,
  .el-table__header-wrapper tr th.el-table-fixed-column--right,
  .el-table__header th {
    background-color: #F2F9FC;

    .cell {
      font-size: 16px;
      color: #000;

    }
  }

  .el-table__header-wrapper {
    background-color: #F2F9FC;
    height: 55px;
    line-height: 38px;
    --el-table-border: 0;

    th {
      border-bottom: 0;

      .cell {
        font-weight: normal;
      }
    }

    .has-gutter {
      color: #666666;
    }
  }

  .el-table__body-wrapper {
    color: #666;

    td {
      border-top: 1px solid #f5f5f5;
      border-bottom: 0;
    }

    .cell {
      padding: 10px 0;
    }
  }
}
